/**
 * 
 */
package pl.lodz.p.browarex.dao;

import java.io.Serializable;
import java.util.List;

public interface GenericDao<T, K  extends Serializable> {

    public void create(T object);

    public void update(T object);

    public void delete(T persistentObject);

    public T findById(K id);

    public List<T> findAll();

    public List<T> findAllByProperty(String propertyName, Object value);
}
